<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/7/11
 * Time: 13:22
 */
namespace app\admin\validate;

use think\Validate;

class Smspt extends Validate{
    protected $rule = [
        'provider_id'           => 'require',
        'template_name'         => 'require|max:100',
        'template_code'         => 'require|max:100',
        'content'               => 'require|max:500',
    ];
    protected $message  =   [
        'provider_id.require'           => '供应商ID不能为空',
        'template_name.require'         => '模板名不能为空',
        'template_code.require'         => '模板编号不能为空',
        'content.require'               => '内容不能为空',
        'template_name.max'             => '模板名不能超过100个字符',
        'template_code.max'             => '模板编号不能超过100个字符',
        'content.max'                   => '模板内容不能超过500个字符',
    ];
}